<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>小关智能-供应链服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <style type="text/css">
        .layui-table[lay-size=sm] tbody td{padding: 5px 0px;}
        .layui-table[lay-size=sm] tbody tr.edit td{padding: 0px;}
        .layui-table[lay-size=sm] tbody td input{border: 0px;}
        .layui-card-body .layui-table{margin: 0px;}
        .tabBody{overflow-y: auto;max-height: 310px;}
        .layui-form-radio{margin: 0px;}
        .m-text{padding:0px 8px;}
        .m-input{display: none;}
        .edit .m-text{display: none;}
        .edit .m-input{display: block;}
        .original-info{text-decoration: line-through;}
        .new-info{color: #ff0000;}
    </style>
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;bottom: 0px;">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
    <div class="layui-card-body">
        <div id="orderView"></div>
        <div id="logistiscsView"></div>
    </div>
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
    <div class="layui-card-body">
        <a href="javascript:" class="file-size" doc-id="" show-file="impOrderAll" edit="false"></a>
    </div>
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>产品信息</span></div>
    <div class="layui-card-body">
        <div>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm share-net-weight"><i class="fa fa-sitemap"></i> 分摊净重</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm share-gross-weight"><i class="fa fa-sitemap"></i> 分摊毛重</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm batch-receiving-no"><i class="fa fa-handshake-o"></i> 绑定入库号</button>
            <button type="button" class="layui-btn layui-btn-warm layui-btn-sm back-business"><i class="fa fa-reply"></i> 退回修改</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm edit-member"><i class="fa fa-edit"></i> 编辑明细</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm save-edit-member tsf-hide"><i class="fa fa-save"></i> 保存修改</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm print-checklist"><i class="fa fa-print"></i> 打印核对单</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm auxiliary-inspection"><i class="fa fa-bell"></i> 辅助验货</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm self-help-split"><i class="fa fa-object-ungroup"></i> 自助拆单</button>
            <button type="button" class="layui-btn layui-btn-sm confirm-inspection"><i class="fa fa-check-square"></i> 验货完成</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>取消关闭</button>
        </div>
        <form class="layui-form" method="post" lay-filter="orderMemberForm" id="orderMemberForm">
            <div id="tabContainer" style="overflow-x: auto;margin-top: 10px;">
                <div style="min-width: 1500px;">
                    <table class="layui-table" lay-size="sm">
                        <colgroup>
                            <col width="45">
                            <col width="70">
                            <col width="150">
                            <col width="130">
                            <col width="130">
                            <col width="60">
                            <col width="80">
                            <col width="60">
                            <col width="80">
                            <col width="90">
                            <col width="50">
                            <col width="80">
                            <col width="80">
                            <col width="80">
                            <col width="90">
                            <col width="90">
                            <col>
                            <col width="50">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>物料状态</th>
                            <th>型号</th>
                            <th>品名</th>
                            <th>品牌</th>
                            <th>单位</th>
                            <th>数量</th>
                            <th>拆分</th>
                            <th>单价</th>
                            <th>总价</th>
                            <th>箱数</th>
                            <th>箱号</th>
                            <th>净重(KG)</th>
                            <th>毛重(KG)</th>
                            <th>产地</th>
                            <th>客户料号</th>
                            <th>入库单号</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                    </table>
                    <div class="tabBody">
                        <table class="layui-table" lay-size="sm">
                            <colgroup>
                                <col width="45">
                                <col width="70">
                                <col width="150">
                                <col width="130">
                                <col width="130">
                                <col width="60">
                                <col width="80">
                                <col width="60">
                                <col width="80">
                                <col width="90">
                                <col width="50">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col width="90">
                                <col>
                                <col width="50">
                            </colgroup>
                            <tbody id="materialBody">

                            </tbody>
                        </table>
                    </div>
                    <table class="layui-table" lay-size="sm">
                        <tfoot>
                        <tr>
                            <th>
                                <div class="layui-row">
                                    <div class="layui-col-md2">
                                        总数量：<h2 style="display: inline-block" id="quantityTotal">0.0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总价：<h2 style="display: inline-block" id="totalPrice">0.0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总箱数：<h2 style="display: inline-block" id="cartonTotal">0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总净重：<h2 style="display: inline-block" id="netWeightTotal">0.0000</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总毛重：<h2 style="display: inline-block" id="grossWeightTotal">0.0000</h2>
                                    </div>
                                </div>
                            </th>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="orderViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">订单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单日期：</label><label class="fval" id="inspection_order_date">{{d.orderDate}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户单号：</label><label class="fval">{{d.clientNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户名称：</label><label class="fval">{{d.customerName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">业务类型：</label><label class="fval">{{d.businessTypeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">报关类型：</label><label class="fval">{{d.declareTypeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">成交方式：</label><label class="fval">{{d.transactionModeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">境外供应商：</label><label class="fval">{{d.supplierName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">协议报价：</label><label class="fval">{{d.impQuoteDesc}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">外贸合同买方：</label><label class="fval">{{d.subjectName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">外贸合同卖方：</label><label class="fval">{{d.subjectOverseasName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">币制：</label><label class="fval">{{d.currencyName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">备注：</label><label class="fval">{{d.memo}}</label></div>
    </div>
</script>
<script type="text/html" id="bindReceivingNoteViewTemp">
    <form class="layui-form receiving-form" method="post">
        <div class="tsf-page-content">
            <table class="layui-table" lay-size="sm">
                <colgroup>
                    <col>
                    <col width="100">
                    <col width="50">
                </colgroup>
                <thead>
                <tr>
                    <th>入库单号</th>
                    <th>数量</th>
                    <th class="t-a-c">操作</th>
                </tr>
                </thead>
                <tbody>
                {{#  layui.each(d, function(index, item){ }}
                    <tr class="edit">
                        <td><input type="text" name="receivingNo" LIST class="layui-input required" placeholder="入库单号" value="{{item.receivingNo}}"/></td>
                        <td><input type="text" name="quantity" LIST  NUMBER class="layui-input required" placeholder="绑定数量" value="{{item.quantity}}"/></td>
                        <td class="t-a-c"><a href="javascript:" onclick="deleteRow(this)"><i class="fa fa-trash-o"></i></a></td>
                    </tr>
                {{#  }); }}
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="3">
                        <a href="javascript:void(0)" class="btn btn-default addrow-btn"><i class="fa fa-plus"></i>添加一行</a>
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>
        <div class="tsf-page-btn-group">
            <button type="button" class="layui-btn layui-btn-sm save-bind-receiving"><i class="fa fa-save" aria-hidden="true"></i>确定</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-mrn"><i class="fa fa-close"></i>关闭</button>
        </div>
    </form>
</script>

<script type="text/html" id="splitQtyViewTemp">
    <form class="layui-form split-qty-form" method="post">
        <div class="tsf-page-content">
            <div class="layui-row">
                <div class="layui-col-md2">
                    数量：<h2 style="display: inline-block">{{d[0].quantity}}</h2>
                </div>
                <div class="layui-col-md2">
                    单价：<h2 style="display: inline-block">{{d[0].unitPrice}}</h2>
                </div>
                <div class="layui-col-md2">
                    总价：<h2 style="display: inline-block">{{d[0].totalPrice}}</h2>
                </div>
                <div class="layui-col-md2">
                    箱数：<h2 style="display: inline-block">{{d[0].cartonNum}}</h2>
                </div>
                <div class="layui-col-md2">
                    净重：<h2 style="display: inline-block">{{d[0].netWeight}}</h2>
                </div>
                <div class="layui-col-md2">
                    毛重：<h2 style="display: inline-block">{{d[0].grossWeight}}</h2>
                </div>
            </div>
            <table class="layui-table mt10" lay-size="sm">
                <colgroup>
                    <col>
                    <col>
                    <col>
                    <col width="50">
                    <col width="70">
                    <col width="80">
                    <col width="90">
                    <col width="70">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="80">
                </colgroup>
                <thead>
                <tr>
                    <th>型号</th>
                    <th>品名</th>
                    <th>品牌</th>
                    <th>单位</th>
                    <th>数量</th>
                    <th>单价</th>
                    <th>总价</th>
                    <th>箱数</th>
                    <th>箱号</th>
                    <th>净重(KG)</th>
                    <th>毛重(KG)</th>
                    <th>产地</th>
                </tr>
                </thead>
                <tbody id="splitMemberBody">
                {{#  layui.each(d, function(index, item){ }}
                <tr class="edit">
                    <td class="pl5">
                        <input type="hidden" name="id" LIST value="{{item.id}}"/>
                        <input type="hidden" name="model" LIST value="{{item.model}}"/>
                        <input type="hidden" name="brand" LIST value="{{item.brand}}"/>
                        <input type="hidden" name="name" LIST value="{{item.name}}"/>
                        <input type="hidden" name="unitName" LIST value="{{item.unitName}}"/>
                        {{item.model}}
                    </td>
                    <td class="pl5">{{item.name}}</td>
                    <td class="pl5">{{item.brand}}</td>
                    <td class="pl5">{{item.unitName}}</td>
                    <td><input type="text" name="quantity" LIST  NUMBER class="layui-input required" value="{{item.quantity}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="unitPrice" LIST NUMBER4 class="layui-input required" value="{{item.unitPrice}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="totalPrice" LIST NUMBER class="layui-input required" value="{{item.totalPrice}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="cartonNum" LIST INT class="layui-input" value="{{item.cartonNum}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="cartonNo" LIST class="layui-input" value="{{removeNull(item.cartonNo)}}"/></td>
                    <td><input type="text" name="netWeight" LIST NUMBER4 class="layui-input required" value="{{item.netWeight}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="grossWeight" LIST NUMBER4 class="layui-input required" value="{{item.grossWeight}}" onblur="calculationSplit(this)"/></td>
                    <td><input type="text" name="countryName" LIST class="layui-input auto-country required" value="{{item.countryName}}"/></td>
                </tr>
                {{#  }); }}
                <tr>
                    <td colspan="4" class="pl5">合计：</td>
                    <td class="t-a-r pr5" id="s_quantity">{{d[0].quantity}}</td>
                    <td></td>
                    <td class="t-a-r pr5" id="s_totalPrice">{{d[0].totalPrice}}</td>
                    <td class="t-a-r pr5" id="s_cartonNum">{{d[0].cartonNum}}</td>
                    <td></td>
                    <td class="t-a-r pr5" id="s_netWeight">{{d[0].netWeight}}</td>
                    <td class="t-a-r pr5" id="s_grossWeight">{{d[0].grossWeight}}</td>
                    <td></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="tsf-page-btn-group">
            <button type="button" class="layui-btn layui-btn-sm save-split-quantity"><i class="fa fa-save" aria-hidden="true"></i>确定</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-mrn"><i class="fa fa-close"></i>关闭</button>
        </div>
    </form>
</script>

<script  type="text/html" id="logistiscsViewTemp">
    <div class="layui-row">
        <div class="layui-col-md12">
            <label class="fkey">境外交货方式：</label><label class="fval">
            {{d.deliveryModeName}}
            {{#if(d.deliveryMode=='ExpressDelivery'){ }}
            {{d.inExpressTypeName}} {{d.hkExpressName}} {{d.hkExpressNo}}
            {{#}else if(d.deliveryMode=='TakeDelivery'){ }}
            {{removeNull(d.takeTime)}} 【{{d.takeLinkCompany}}】 {{d.takeAddress}} ({{d.takeLinkPerson}} {{d.takeLinkTel}})
            {{#}}}
        </label></div>
    </div>
    <div class="layui-row"><div class="layui-col-md12"><label class="fkey">交货备注：</label><label class="fval">{{d.deliveryModeMemo}}</label></div></div>
    <div class="layui-row">
        <div class="layui-col-md12">
            <label class="fkey">国内配送方式：</label><label class="fval">
            {{d.receivingModeName}}
            {{#if(d.receivingMode=='ThirdLogistics'){ }}
            <span class="layui-badge">{{d.paymentDeliveryName}}</span> {{d.logisticsCompanyName}} {{removeNull(d.prescription)}}
            【{{d.deliveryCompanyName}}】 {{d.deliveryAddress}} ({{d.deliveryLinkPerson}} {{d.deliveryLinkTel}})
            {{#}else if(d.receivingMode=='SelfLifting'){ }}
            自提点 {{d.selfWareName}} {{removeNull(d.selfLinkPerson)}} {{removeNull(d.selfPersonId)}}
            {{#}else if(d.receivingMode=='HkThrough' || d.receivingMode=='SpecialCar'){ }}
            【{{d.deliveryCompanyName}}】 {{d.deliveryAddress}} ({{d.deliveryLinkPerson}} {{d.deliveryLinkTel}})
            {{#}}}
        </label></div>
    </div>
    </div>
    {{#if(d.receivingMode=='SelfLifting'){ }}
    <div class="layui-row"><div class="layui-col-md12"><label class="fkey">提货备注：</label><label class="fval">{{d.selfMemo}}</label></div></div>
    {{#}}}
    <div class="layui-row"><div class="layui-col-md12"><label class="fkey">收货备注：</label><label class="fval">{{d.receivingModeMemo}}</label></div></div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/autocomplete.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file-config.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file.js?v=202001010101"></script>
<script type="text/javascript" src="/order/imp/inspection.js?v=202206150802"></script>
</body>
</html>